package com.cdplife.ci.core.common.constant;

public enum AuthDimensionEnum {
	
	PARENT("父级", "parent",1,0),INSURANCE("保险公司", "insurance",2,401),TENANT("客户", "tenant",3,402), EMPLOYEE_GROUP("员工方案分组", "employee_group",4,403);  
	
    // 成员变量  
    private String name;  
    private String code;  
    private int prefix;
    private int id;
    
    // 构造方法  
    private AuthDimensionEnum(String name, String code, int prefix,int id) {  
        this.name = name;  
        this.code = code;  
        this.prefix = prefix;
        this.id = id;
    }  
    // 普通方法  
    public static String getName(String code) {  
        for (AuthDimensionEnum c : AuthDimensionEnum.values()) {  
            if (c.getCode() == code) {  
                return c.name;  
            }  
        }  
        return null;  
    }  
    public int getPrefix() {
		return prefix;
	}
	public void setPrefix(int prefix) {
		this.prefix = prefix;
	}
	// get set 方法  
    public String getName() {  
        return name;  
    }  
    public void setName(String name) {  
        this.name = name;  
    }  
    public String getCode() {  
        return code;  
    }  
    public void setCode(String code) {  
        this.code = code;  
    }
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}  

}
